<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ace="http://www.icefaces.org/icefaces/components">
<h:head>
	<title>Register</title>
</h:head>
<h:body>
	<ice:form>

		<ice:panelGrid columns="3">
			<ice:outputText for="ID" value="Identity ID:"></ice:outputText>
			<ice:inputText for="ID" value="#{agentBean.id}" required="true"
				maxlength="11"></ice:inputText>
			<ice:message for="ID"></ice:message>

			<ice:outputText for="name" value="Full Name:"></ice:outputText>
			<ice:inputText for="name" value="#{agentBean.full_name}"
				required="true" maxlength="35"></ice:inputText>
			<ice:message for="name"></ice:message>

			<ice:outputText for="mobile phone" value="Mobile Phone:"></ice:outputText>
			<ice:inputText for="mobie phone"
				value="#{agentBean.mobile_phone_number}" maxlength="11"></ice:inputText>
			<ice:message for="mobile phone"></ice:message>

			<ice:outputText for="agency phone" value="Agency Phone:"></ice:outputText>
			<ice:inputText for="agency phone"
				value="#{agentBean.agency_phone_number}" maxlength="11"></ice:inputText>
			<ice:message for="agency phone"></ice:message>



			<ice:outputText for="city" value="City:"></ice:outputText>
			<ice:selectOneMenu for="city" value="#{agentBean.city}"
				style="width:150" partialSubmit="true">
				<f:selectItem itemLabel="İstanbul" itemValue="34" />
				<f:selectItem itemLabel="Ankara" itemValue="6" />
				<f:selectItem itemLabel="İzmir" itemValue="35" />
				<f:selectItem itemLabel="Bursa" itemValue="16" />
				<f:selectItem itemLabel="Konya" itemValue="42" />
				<f:selectItem itemLabel="Eskişehir" itemValue="26" />
				<f:selectItem itemLabel="Samsun" itemValue="55" />
				<f:selectItem itemLabel="Trabzon" itemValue="61" />
				<f:selectItem itemLabel="Düzce" itemValue="81" />
			</ice:selectOneMenu>
			<ice:message for="city"></ice:message>

			<ice:outputText for="adress" value="Agency Adress:"></ice:outputText>
			<ice:inputText for="adress" value="#{agentBean.adress}"
				maxlength="80"></ice:inputText>
			<ice:message for="adress"></ice:message>

			<ice:outputText for="e-mail" value="e-mail:"></ice:outputText>
			<ice:inputText for="e-mail" value="#{agentBean.e_mail}"
				maxlength="25"></ice:inputText>
			<ice:message for="e-mail"></ice:message>

			<ice:outputText for="password" value="Password:"></ice:outputText>
			<ice:inputSecret for="password" value="#{agentBean.password}"
				required="true" maxlength="12"></ice:inputSecret>
			<ice:message for="password"></ice:message>

			<ice:outputText for="comfirm password" value="Confirm Password:"></ice:outputText>
			<ice:inputSecret for="comfirm password"
				value="#{agentBean.confirm_password}" required="true" maxlength="12"></ice:inputSecret>
			<ice:message for="confirm password"></ice:message>
		</ice:panelGrid>

		<ice:commandButton value="Register"
			actionListener="#{agentBean.submitRegisterButton}"></ice:commandButton>
		
		<ice:outputText value="#{agentBean.msg}"></ice:outputText><br />

	</ice:form>



	<br />


</h:body>
<h:outputStylesheet library="org.icefaces.component.skins"
	name="rime.css" />
</html>